package com.qf.pojo;

import java.util.Date;

/**
 * @author Kuke
 * @date 2021/8/31
 * 普通用户User实体类
 *
 *
FieldTypeComment
uid varchar(32) NOT NULL
username varchar(20) NULL
password varchar(32) NULL
name varchar(20) NULL
email varchar(30) NULL
telephone varchar(20) NULL
birthday date NULL
sex varchar(10) NULL
state int NULL
code varchar(64) NULL
 */
public class User {
    private String uid ;//用户uid--->后期通过:UUID工具类 产生唯一的32位随机字符
    private String username ;//昵称(网名)
    private String password ;//密码
    private String name ; //真实姓名

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String email ;//邮箱
    private String telephone ; //手机号
    private Date birthday ;//出生日期
    private String sex ;//性别
    private int state =0; // 默认激活状态0 (未激活) 1,已激活  (通过邮箱可以激活用户)
    private String code ;//激活码

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", telephone='" + telephone + '\'' +
                ", birthday=" + birthday +
                ", sex='" + sex + '\'' +
                ", state=" + state +
                ", code='" + code + '\'' +
                '}';
    }
}
